//
//  MVIPCardService.h
//  NeusoftHBSJSober
//
//  Created by Apple-21 on 15/11/7.
//  Copyright (c) 2015年 com.neusoftsober. All rights reserved.
//

#import "MBaseService.h"
#import "MDetailMerchantModel.h"
@class MMerchantModel;
typedef void (^GetVipCardExchangeDealLogHandler) (NSMutableArray *result);
typedef void (^GetVipCardExchangeDealLogErrorHandler) (NSString *error);

typedef void (^GetVipSystemCompletionHandler) (NSString *result);
typedef void (^GetVipSystemErrorHandler)(NSString *error);

typedef void (^ChangeVipPasswordCompletionHandler)(NSString *result);
typedef void (^ChangeVipPasswordErrorHandler)(NSString *error);

typedef void (^ValidateVipPasswordComletionHandler)(NSString *result);
typedef void (^VaildateVipPasswordErrorHandler)(NSString *error);

typedef void (^MyVipCardCompletionHandler)(NSMutableArray *result);
typedef void (^MyVipCardCompletionError)(NSString *error);

typedef void (^MerchantInfoComletionHandle)(MMerchantModel *model);
typedef void (^MerchantInfoComletionError)(NSString *error);

typedef void (^DetailMerchantInfoCompletionHandle)(MDetailMerchantModel *model);

typedef void (^VIPCardComsumeInfoCompletionHandle)(NSMutableArray *result);
typedef void (^VIPCardComsumeInfoCompletionError)(NSString *error);

typedef void (^VIPCardUseSatuationCompletionHandle)(NSMutableArray *result);
typedef void (^VIPCardUseSatuationCompletionError)(NSString *error);

typedef void (^VIPCardDetailCompletionHandel)(MMerchantModel *model);
typedef void (^VIPCardDetialCompletionError)(NSString *error);
@interface MVIPCardService : MBaseService


- (void)getVipCardExchangeDealLogWithUserID:(NSInteger)userID complention:(GetVipCardExchangeDealLogHandler)success failure:(GetVipCardExchangeDealLogErrorHandler)failure;

- (void)getVIPCardPassWordWithType:(NSString *)type userId:(NSInteger)userID password:(NSString *)password phoneNumber:(NSString *)phoneNumber completion:(GetVipSystemCompletionHandler)success failure:(GetVipSystemErrorHandler)failure;

- (void)getVipCardChangePwdWithType:(NSString *)type userID:(NSInteger)userID oldPassword:(NSString *)oldPassword newPassword:(NSString *)newPassword completion:(ChangeVipPasswordCompletionHandler)success failure:(ChangeVipPasswordErrorHandler)failure;

- (void)validateVipCardWithUserID:(NSInteger)userID password:(NSString *)password comletion:(ValidateVipPasswordComletionHandler)success failure:(VaildateVipPasswordErrorHandler)failure;

- (void)getMyVipCardWithUserID:(NSInteger)userID isFriend:(NSString *)isFriend isUse:(NSString *)isUse completion:(MyVipCardCompletionHandler)success failure:(MyVipCardCompletionError)failure;

- (void)getSalemanInfoWithUserId:(NSInteger)userID completion:(MerchantInfoComletionHandle)success failure:(MerchantInfoComletionError)failure;

- (void)getMerchantInfoWithMerchantID:(NSString *)merchantID latitude:(NSString *)latitude longtitude:(NSString *)longtitude completion:(DetailMerchantInfoCompletionHandle)success failure:(MerchantInfoComletionError)failure;

- (void)getVipCardComsumeListWithCardID:(NSInteger)cardId pageIndex:(NSInteger)pageIndex pageSize:(NSInteger)pageSize userID:(NSInteger)userID sortType:(NSString *)sortType userName:(NSString *)userName completion:(VIPCardComsumeInfoCompletionHandle)success failure:(VIPCardComsumeInfoCompletionError)failure;

- (void)getVipCardUseSatuationWithCardID:(NSInteger)cardID completion:(VIPCardUseSatuationCompletionHandle)success failure:(VIPCardUseSatuationCompletionError)failure;
//- (void)getVIpCardDetailWithCardID:(NSInteger)ID completion:(VIPCardDetailCompletionHandel)success failure:(VIPCardDetialCompletionError)failure;
@end
